<template>
  <div class="wrapper">
    <el-table :data="store.data" style="width: 100%" v-bind="$attrs" v-on="$listeners">
      <slot></slot>
    </el-table>
    <el-pagination
      background
      layout="prev, pager, next"
      :total="1000">
    </el-pagination>
  </div>
</template>
<script>
export default {
  name: 'StoreTableComp',
  props: ['store'],
  created(){
    if(this.store && this.store.autoLoad){
      this.store.loadData()
    }
  }
}
</script>